<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="theme-color" content="#33474d">
	<title>常见apache php_admin_value php_admin_flag 设置 | 失落的乐章</title>
	<link rel="stylesheet" href="/css/style.css" />
	
      <link rel="alternate" href="/atom.xml" title="失落的乐章" type="application/atom+xml">
    
</head>

<body>

	<header class="header">
		<nav class="header__nav">
			
				<a href="/archives" class="header__link">Archive</a>
			
				<a href="/tags" class="header__link">Tags</a>
			
				<a href="/atom.xml" class="header__link">RSS</a>
			
		</nav>
		<h1 class="header__title"><a href="/">失落的乐章</a></h1>
		<h2 class="header__subtitle">技术面前，永远都是学生。</h2>
	</header>

	<main>
		<article>
	
		<h1>常见apache php_admin_value php_admin_flag 设置</h1>
	
	<div class="article__infos">
		<span class="article__date">2017-10-12</span><br />
		
		
			<span class="article__tags">
			  	<a class="article__tag-link" href="/tags/LAMP/">LAMP</a> <a class="article__tag-link" href="/tags/Php/">Php</a>
			</span>
		
	</div>

	

	
		<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div></pre></td><td class="code"><pre><div class="line">php_admin_value open_basedir /data/123:/tmp/</div><div class="line">php_admin_flag engine on</div><div class="line">php_admin_flag log_errors on</div><div class="line">php_admin_value max_execution_time 180</div><div class="line">php_admin_value upload_tmp_dir /mp/</div><div class="line">php_admin_value include_path /data/123/include</div><div class="line">php_admin_flag short_open_tag on</div><div class="line">php_admin_value memory_limit 8388608</div><div class="line">php_admin_value error_reporting 15</div><div class="line">php_admin_flag display_errors on</div><div class="line">php_admin_flag track_errors off</div><div class="line">php_admin_value error_log /home/logs/php_error.log</div><div class="line">php_admin_flag magic_quotes_gpc on</div><div class="line">php_admin_flag track_vars on</div><div class="line">php_admin_value auto_prepend_file /data/123/php/prepend.php</div><div class="line">php_admin_value auto_append_file /data/123/php/append.php</div></pre></td></tr></table></figure>
<h2 id="php-admin-value-php-admin-flag-php-value-php-flag"><a href="#php-admin-value-php-admin-flag-php-value-php-flag" class="headerlink" title="php_admin_value php_admin_flag php_value php_flag"></a>php_admin_value php_admin_flag php_value php_flag</h2><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;前面的两个参数用在httpd.conf 中，后面的两个用在.htaccess中</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;至于 value  和 flag 的不同在于，前者用于设置值（如字符串）， 后后者只能是on off</p>

	

	
		<span class="different-posts"><a href="/2017/10/12/Php/7. 常见apache php_admin_value php_admin_flag 设置/" onclick="window.history.go(-1); return false;">⬅️ Go back </a></span>

	

</article>

	</main>

	<footer class="footer">
	<div class="footer-content">
		
	      <div class="footer__element">
	<p>Hi there, <br />welcome to my Blog glad you found it. Have a look around, will you?</p>
</div>

	    
	      <div class="footer__element">
	<h5>Check out</h5>
	<ul class="footer-links">
		<li class="footer-links__link"><a href="/archives">Archive</a></li>
		
		  <li class="footer-links__link"><a href="/atom.xml">RSS</a></li>
	    
		<li class="footer-links__link"><a href="/about">about page</a></li>
		<li class="footer-links__link"><a href="/tags">Tags</a></li>
		<li class="footer-links__link"><a href="/categories">Categories</a></li>
	</ul>
</div>

	    

		<div class="footer-credit">
			<span>© 2017 失落的乐章 | Powered by <a href="https://hexo.io/">Hexo</a> | Theme <a href="https://github.com/HoverBaum/meilidu-hexo">MeiliDu</a></span>
		</div>

	</div>


</footer>



</body>

</html>
